import request from '@/utils/request'

// 查询系统分类列表
export function listTypeConfig(query) {
  return request({
    url: '/recycle/typeConfig/list',
    method: 'get',
    params: query
  })
}

// 查询系统分类详细
export function getTypeConfig(id) {
  return request({
    url: '/recycle/typeConfig/' + id,
    method: 'get'
  })
}

// 新增系统分类
export function addTypeConfig(data) {
  return request({
    url: '/recycle/typeConfig',
    method: 'post',
    data: data
  })
}

// 修改系统分类
export function updateTypeConfig(data) {
  return request({
    url: '/recycle/typeConfig',
    method: 'put',
    data: data
  })
}

// 删除系统分类
export function delTypeConfig(id) {
  return request({
    url: '/recycle/typeConfig/' + id,
    method: 'delete'
  })
}
